package uscdb.pageModel;

public class GlobalData {

	private Boolean UPDATEINDEX = false;
	
	private static class GlobalDataInstance {
		private static final GlobalData instance = new GlobalData();
	}

	// 返回唯一的本类对象实例
	public static GlobalData getInstane() {
		return GlobalDataInstance.instance;
	}

	// 私有构造方法，保证外界不能进行调用
	private GlobalData() {

	}
	
	/**
	 * 判断是否正在更新Lucene索引
	 * @return
	 */
	public Boolean isUpdatingIndex(){
		return UPDATEINDEX;
	}
	

	public void setUPDATEINDEX(Boolean uPDATEINDEX) {
		UPDATEINDEX = uPDATEINDEX;
	}
	
	

}
